#ifndef DW_GRAPHICS_VERTEX_BUFFER_INL
#	define DW_GRAPHICS_VERTEX_BUFFER_INL

namespace dw {
	namespace graphics {

inline const VertexFormat* VertexBuffer::getVertexFormat() const
{
	return m_format;
}

inline VertexBuffer::VertexBuffer(updates update, usages usage, const VertexFormat* format)
:	super(type_vertex, update, usage)
,	m_format(format)
{
	dwAssert(format != NULL, "Invalid parameter: format is null");
	
	super::setElementSize(format->getVertexSize());
}

inline VertexBuffer::VertexBuffer(GLuint id, updates update, usages usage, const VertexFormat* format)
:	super(id, type_vertex, update, usage)
,	m_format(format)
{
	dwAssert(format != NULL, "Invalid parameter: format is null");

	super::setElementSize(format->getVertexSize());
}

inline VertexBuffer::~VertexBuffer()
{
}

	} // namespace graphics
} // namespace dw

#endif // !DW_GRAPHICS_VERTEX_BUFFER_INL
